<template>
	<view>
		<live-index :dataList="dataList" :parameter="parameter"></live-index>
		<!-- 没有入口你也能审核到这个页面？ -->
		<sww-login></sww-login>
		<sww-load-more :params="dataListParams"></sww-load-more>
	</view>
</template>

<script>
import { pageShare } from '@/mixins/pageShare';
import { pagingMixin } from '@/mixins/pagingMixin';
import liveIndex from '@/pagecomponents/liveIndex/index.vue';
export default {
	mixins: [pagingMixin, pageShare],
	components: {
		liveIndex
	},
	data() {
		return {
			parameter:{
				layout:1
			}
		};
	},
	onLoad() {
		this.$initPage();
	},
	onShareAppMessage() {
		this.getShareAppMessage();
	},
	onReachBottom() {
		this._load_data();
	},
	methods: {
		$initPage() {
			this._init_data('GetLiveInfo',{type:1,start:0,limit:100},{callBack:this.$formatData});
		},
		$formatData (data) {
			return (data.room_info || [])
		}
	}
};
</script>

<style scoped lang="scss"></style>
